<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./index.css">
    <script src="./js/jquery.js"></script>
    <title>景区列表</title>
</head>

<body>
    <div class="viewpointsort-box">
        <div class="viewpointsort-header
        ">
            <div class="viewpointsort-header_search">
                <input type="text" value="请输入您想查找的内容">
                <img src="./img/search1.png" alt="">
            </div>
            <div class="viewpointsort-header_select">
                <select name="" id="">
                    <option value="">筛选</option>
                </select>
            </div>
            <div class="viewpointsort-header_menu">
                <img src="./img/list1.png" alt="" class="scenicsort-menu_togglemenu">
            </div>
        </div>
        <div class="viewpoint-container">
            <ul class="viewpoint-container-list">
                <li class="viewpoint-list_item">
                    <div class="viewpointsort-list-libox">
                        <img src="./img/img0.1.png" alt="">
                    </div>
                    <div class="viewpointsort-list-libox_textbox">
                        <p class="viewpoint-container-list_text">木兰山风景区</p>
                        <p>
                            <span class="viewpoint-container-list_tag">自然风光</span>
                        </p>
                        <p class="viewpoint-container-add_text">湖北-武汉-武昌区</p>
                    </div>
                    <div class="viewpointsort-list-libox_eyebox">
                        <p>
                            <img src="./img/browse.png" alt="">2.8万</p>
                    </div>
                </li>
                <li class="viewpoint-list_item">
                    <div class="viewpointsort-list-libox">
                        <img src="./img/img0.2.png" alt="">
                    </div>
                    <div class="viewpointsort-list-libox_textbox">
                        <p class="viewpoint-container-list_text">黄鹤楼公园</p>
                        <p>
                            <span class="viewpoint-container-list_tag">自然风光</span>
                            <span class="viewpoint-container-list_tag">名胜古迹</span>
                        </p>
                        <p class="viewpoint-container-add_text">湖北-武汉-江汉区</p>
                    </div>
                    <div class="viewpointsort-list-libox_eyebox">
                        <p>
                            <img src="./img/browse.png" alt="">6.1万</p>
                    </div>
                </li>
                <li class="viewpoint-list_item">
                    <div class="viewpointsort-list-libox">
                        <img src="./img/img0.3.png" alt="">
                    </div>
                    <div class="viewpointsort-list-libox_textbox">
                        <p class="viewpoint-container-list_text">植物园</p>
                        <p>
                            <span class="viewpoint-container-list_tag">主题公园</span>
                        </p>
                        <p class="viewpoint-container-add_text">湖北-武汉-武昌区</p>
                    </div>
                    <div class="viewpointsort-list-libox_eyebox">
                        <p>
                            <img src="./img/browse.png" alt="">2.1万</p>
                    </div>
                </li>
                <li class="viewpoint-list_item">
                    <div class="viewpointsort-list-libox">
                        <img src="./img/img0.4.png" alt="">
                    </div>
                    <div class="viewpointsort-list-libox_textbox">
                        <p class="viewpoint-container-list_text">海洋世界</p>
                        <p>
                            <span class="viewpoint-container-list_tag">休闲娱乐</span>
                        </p>
                        <p class="viewpoint-container-add_text">湖北-武汉-武昌区</p>
                    </div>
                    <div class="viewpointsort-list-libox_eyebox">
                        <p>
                            <img src="./img/browse.png" alt="">14558</p>
                    </div>
                </li>
                <li class="viewpoint-list_item">
                    <div class="viewpointsort-list-libox">
                        <img src="./img/img0.5.png" alt="">
                    </div>
                    <div class="viewpointsort-list-libox_textbox">
                        <p class="viewpoint-container-list_text">木兰天池</p>
                        <p>
                            <span class="viewpoint-container-list_tag">森林公园</span>
                        </p>
                        <p class="viewpoint-container-add_text">湖北-武汉-黄陂区</p>
                    </div>
                    <div class="viewpointsort-list-libox_eyebox">
                        <p>
                            <img src="./img/browse.png" alt="">14558</p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div class="viewpointsort-container">
        <ul class="viewpoint-container-list">
            <li class="viewpoint-list-card_item">
                <div class="viewpoint-container-list_box">
                    <img src="./img/image0.1.png" alt="">
                    <p class="viewpoint-container-list_text">木兰山风景区
                        <span class="viewpoint-container-list_tag viewpoint-container-list_sorttag">自然风光</span>
                    </p>
                    <div class="viewpoint-container-list1_add">
                        <p class="viewpoint-container-add_text">湖北-武汉-武昌区</p>
                        <p class="viewpoint-container-add_eye">
                            <img src="./img/browse.png" alt="">6.1万</p>
                    </div>

                </div>
            </li>
            <li class="viewpoint-list-card_item">
                <div class="viewpoint-container-list_box">
                    <img src="./img/image0.2.png" alt="">
                    <p class="viewpoint-container-list_text">黄鹤楼
                        <span class="viewpoint-container-list_tag viewpoint-container-list_sorttag">人文景观</span>
                        <span class="viewpoint-container-list_tag viewpoint-container-list_sorttag">名胜古迹</span>
                    </p>
                    <div class="viewpoint-container-list1_add">
                        <p class="viewpoint-container-add_text">湖北-武汉-武昌区</p>
                        <p class="viewpoint-container-add_eye">
                            <img src="./img/browse.png" alt="">6.1万</p>
                    </div>
                </div>
            </li>
            <li class="viewpoint-list-card_item">
                <div class="viewpoint-container-list_box">
                    <img src="./img/image0.3.png" alt="">
                    <p class="viewpoint-container-list_text">植物园
                        <span class="viewpoint-container-list_tag viewpoint-container-list_sorttag">主题公园</span>
                    </p>
                    <div class="viewpoint-container-list1_add">
                        <p class="viewpoint-container-add_text">湖北-武汉-武昌区</p>
                        <p class="viewpoint-container-add_eye">
                            <img src="./img/browse.png" alt="">6.1万</p>
                    </div>
                </div>
            </li>
        </ul>
    </div>
    <script>
        $(function () {
            $(".scenicsort-menu_togglemenu").click(function () {
                $(".viewpointsort-container").toggle();
                $(".viewpoint-container").toggle();
                if ($(this).attr("src") == "./img/list3.png") {
                    $(this).attr("src", "./img/list1.png");
                    $(".viewpointsort-header_search input").val("请输入您想查找的内容");
                } else {
                    $(this).attr("src", "./img/list3.png");
                    $(".viewpointsort-header_search input").val("黄陂");
                }
            });
            // $(".scenicsort-menu_togglemenu").mousedown(function(){
            //               $(this).attr("src","./img/list2.png")
            // });
            // $(".scenicsort-menu_togglemenu").mouseup(function(){
            //     $(".viewpointsort-container").toggle();
            //     $(".viewpoint-container").toggle();
            //   if($(this).attr("src")=="./img/list2.png"){
            //       $(this).attr("src","./img/list4.png");
            //       $(".viewpointsort-header_search input").val("请输入您想查找的内容");
            //   }
            //   else if($(this).attr("src")!="./img/list3.png" || $(this).attr("src")=="./img/list2.png"){
            //     $(this).attr("src","./img/list3.png");
            //     $(".viewpointsort-header_search input").val("黄陂");
            //   }
            // });

            // **********************输入框获得焦点*****************
            $(".viewpointsort-header_search input").focus(function () {
                $(this).css({
                    "font-size": "16px",
                    "color": "#333333",
                });
                if ($(this).val() == "请输入您想查找的内容") {
                    $(this).val("");
                }
                $(".viewpointsort-header_search img").attr("src", "./img/search2.png");
            });

            //*********************** 输入框失去焦点**********************
            $(".viewpointsort-header_search input").blur(function () {
                if ($(this).val() == "") {
                    $(this).val("请输入您想查找的内容");
                };
                $(this).css({
                    "font-size": "14px",
                    "color": "#999999",
                });
                $(".viewpointsort-header_search img").attr("src", "./img/search1.png");
            });
        })
    </script>
</body>

</html>